<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="renderer" content="webkit" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="telephone=no" name="format-detection" />
        <meta name="baidu-site-verification" content="rev2vesxXw" />
        <meta name="copyright" content="本版权归钱内助所有。All Rights Reserved">
        <meta name="generator" content="WEBSTORM">
        <title>45天限时加息</title>
        <meta name="keywords" content="加息、限时抢购、45天">
        <meta name="description" content="45天加息2.8%，年化11.68%限时抢">
        <#include "../include/head.html"/>
        <#include "../common/function.html"/>
        <style>
            body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { padding: 0; margin: 0; }
            body{ font-family: "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif; -webkit-tap-highlight-color: rgba(0,0,0,0); outline: none; overflow-x: hidden; background: #effff4;}
            ul,li,ol{ list-style: none;}
            img{ border: none;}
            a{ text-decoration: none;}
            a:hover{ text-decoration: none;}
            .clearFixed:after{ content: ''; clear: both; width: 0; height: 0; display: block; visibility: hidden;}
            .fl{ float: left;}
            .fr{ float: right;}
            .header{ background: #fff;}
            .header .user .tits{ width: 84px;}
            .springMain{ width: 100%;}
            .springTop{ width: 100%; height: 604px; position: relative;}
            .springTopBox{ position: absolute; left: 0; top: 0; background: url(/themes/soonmes_qzw_v2/activity/monthActivity/images/spring45/pc-top.png) no-repeat top center; width: 100%; height: 100%; z-index: 100;}
            .springBox{ width: 817px; margin: -53px auto 0 auto; border: 3px solid #1ea681; padding: 85px 0 25px 0; background: #fff; border-radius: 10px;}
            .springBoxTop{ padding: 0 55px;}
            .rate,.term{ color: #333;}
            .rate{ font-size: 54px; width: 480px; position: relative;}
            .rate::after{ content: ''; width: 2px; height: 113px; background: #f2e2d3; position: absolute; right: 0; bottom: 0;}
            .term{ font-size: 40px; padding-right: 20px;}
            .rate p,.term p{ font-size: 28px; color: #bb7c40;}
            .rate div,.term div{ height: 110px; margin-bottom: 10px;}
            .rate span,.term span{ color: #ff4f00;}
            .springBoxBtn{ margin-top: 20px;}
            .springBoxBtn a{ display: block; margin: 0 auto; width: 540px; height: 123px; background: url(/themes/soonmes_qzw_v2/activity/monthActivity/images/spring45/pc-btn.png) no-repeat; text-align: center; font-size: 60px; color: #fff8e2; line-height: 110px;}
            .springRule{ width: 824px; margin: 40px auto 0 auto;}
            .springRule h2{ text-align: center; font-size: 34px; color: #3daa8f;}
            .springRuleList{ width: 100%; background: #e2faed; border-radius: 10px; margin-top: 20px; padding: 25px; font-size: 24px; line-height: 45px; color: #78827c;}
            .springFoot{ height: 100px; line-height: 100px; text-align: center; font-size: 18px; color: #888c89;}
        </style>
    </head>
    <body class="full">
        <!--S 快速导航开始-->
        <#include "../include/quickNav.html"/>
        <!--E 快速导航结束-->
        <!--S 头部开始-->
        <#include "../include/header.html"/>
        <!--E 头部结束-->
        <div class="springMain">
            <div class="springTop">
                <div class="springTopBox"></div>
            </div>
            <div class="springBox">
                <div class="springBoxTop clearFixed">
                    <div class="rate fl">
                        <div><font style="font-size: 74px;">8.8</font>%<span>+<font style="font-size: 102px;">2.88</font>%</span></div>
                        <p>预期年化收益率</p>
                    </div>
                    <div class="term fr">
                        <div><span style="font-size: 102px;">45</span>天</div>
                        <p>投资期限</p>
                    </div>
                </div>
                <div class="springBoxBtn"><a href="javascript:void(0);" id="btn"></a></div>
            </div>
            <div class="springRule">
                <h2>活动规则</h2>
                <div class="springRuleList">
                    <ul>
                        <li>1、钱内助所有用户（各客户端均可参与）；</li>
                        <li>2、活动时间：3月1日—4月30日；</li>
                        <li>3、投资活动期间发布的45天产品，享有11.68%年化收益率；</li>
                        <li>4、活动内容如有更改，将于官网公告，不再另行通知；</li>
                        <li>5、本活动最终解释权归钱内助所有。</li>
                    </ul>
                </div>
            </div>
            <div class="springFoot">市场有风险，投资需谨慎</div>
        </div>
        <script src="/themes/soonmes_qzw_v2/activity/invite/script/jquery.js"></script>
        <script>
            $(function(){
                function getServerDate(){
                    return new Date($.ajax({
                        async: false,
                        url:'/activity/activityBorrow.html'
                    }).getResponseHeader("Date"));
                }
                //var nowtime = Date.parse(new Date());
                var nowtime = Date.parse(getServerDate());// 服务器时间
                var exceptionDay1 = Date.parse('2018/03/03 00:00:00');
                var exceptionDay2 = Date.parse('2018/04/30 23:59:59');
                var oneDayTime = 24*60*60*1000;

                var time, timer,otherHour = 0;
                var countDownTime = function(){
                    time -= 1000;
                    var hour = parseInt(time/(60*60*1000));
                    var minute = parseInt((time%(24*60*60*1000)%(60*60*1000))/(60*1000));
                    var second = parseInt((time%(24*60*60*1000)%(60*60*1000)%(60*1000))/1000);
                    if(second >= 0){
                        $("#btn").text(add_0(hour)+":"+add_0(minute)+":"+add_0(second))
                    } else{
                        clearInterval(timer);
                        $('#btn').attr('href', '/tl/select.html').html("立即抢购");
                    }
                };
                var add_0 = function(n){
                    if(n >= 10){
                        return n;
                    }
                    else{
                        return '0' + n;
                    }
                };
                function whichDay(){
                    var mnowtime = new Date(nowtime);//将时间戳转换为标准格式
                    var day = mnowtime.getDay();
                    switch (day){
                        case 2:
                            time = oneDayTime - (mnowtime.getHours()*60*60*1000 + mnowtime.getMinutes()*60*1000 + mnowtime.getSeconds()*1000)+otherHour;
                            countDownTime();
                            timer = setInterval(countDownTime, 1000);
                            break;
                        case 5:
                            time = oneDayTime - (mnowtime.getHours()*60*60*1000 + mnowtime.getMinutes()*60*1000 + mnowtime.getSeconds()*1000)+otherHour;
                            countDownTime();
                            timer = setInterval(countDownTime, 1000);
                            break;
                        case 4:
                            time = oneDayTime*2 - (mnowtime.getHours()*60*60*1000 + mnowtime.getMinutes()*60*1000 + mnowtime.getSeconds()*1000)+otherHour;
                            countDownTime();
                            timer = setInterval(countDownTime, 1000);
                            break;
                        case 1:
                            $('#btn').attr('href', '/tl/select.html').html("立即抢购");
                            break;
                        case 3:
                            $('#btn').attr('href', '/tl/select.html').html("立即抢购");
                            break;
                        case 6:
                            $('#btn').attr('href', '/tl/select.html').html("立即抢购");
                            break;
                        case 0:
                            $('#btn').attr('href', '/tl/select.html').html("立即抢购");
                            break;
                    }
                }
                if(nowtime<exceptionDay1){
                    time = exceptionDay1 - nowtime;
                    countDownTime();
                    timer = setInterval(countDownTime, 1000);
                }else if(nowtime>=exceptionDay1 && nowtime<exceptionDay2){
                    whichDay();
                }else{
                    $('#btn').attr('href', 'javascript:void(0);').html("活动已结束");
                }
            });
        </script>
        <script>
            var _hmt = _hmt || [];
            (function() {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?c99fe1c7b690e000350f2883e671cb5c";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script type='text/javascript'>
            var _vds = _vds || [];
            window._vds = _vds;
            (function(){
                _vds.push(['setAccountId', 'a74544d3179583c3']);
                (function() {
                    var vds = document.createElement('script');
                    vds.type='text/javascript';
                    vds.async = true;
                    vds.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'dn-growing.qbox.me/vds.js';
                    var s = document.getElementsByTagName('script')[0];
                    s.parentNode.insertBefore(vds, s);
                })();
            })();
        </script>
    </body>
</html>